package com.firebird.app.fekpsl.mvp.me

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss

/**
 * Created by chenxz on 2018/6/3.
 */
class BindEmailPresenter : BasePresenter<BindEmailContract.Model, BindEmailContract.View>(), BindEmailContract.Presenter {

    override fun createModel(): BindEmailContract.Model? = BindEmailModel()

    override fun bindEmail(userUuid: String, bindEmail: String) {
        mModel?.bindEmail(userUuid, bindEmail)?.ss(mModel, mView) {
            mView?.bindEmailSuccess(success = true)
        }
    }
}